package client

import (
	goods "goods-srv/gen/goods"
	"log"
	"order-srv/client"
)

var GoodsClient goods.GoodsClient

func init() {
	goodsSrvConn, err := client.GrpcConsulClientConn("goods-srv")
	if err != nil {
		log.Fatalf("goodsSrvConn失败: %v", err.Error())
		return
	}
	//defer conn.Close()
	GoodsClient = goods.NewGoodsClient(goodsSrvConn)
}
